package com.ansion.basedb.dao.helper;

import androidx.annotation.NonNull;

import com.ansion.basedb.dao.model.ContactsModel;
import com.ansion.basedb.dao.model.UserModel;
import com.ansion.basedb.database.sql.SQLRow;
import com.ansion.basedb.database.sql.SqlEntityWrapper;

/***
 * 需要对UserModel和ContactsModel做联表查询
 */
public class ContactQueryBeanForUI extends SqlEntityWrapper {
    private String userId;
    private int contactId;


    public ContactQueryBeanForUI() {

    }


    @Override
    public void readFromSQLRow(@NonNull SQLRow row) {
        userId = row.getAsString(UserModel.kColumnName_UserId);
        contactId = row.getAsInteger(ContactsModel.kColumnName_ContactId);
    }

    public String getUserId() {
        return userId;
    }


    public int getContactId() {
        return contactId;
    }
}
